var Base = function () {
    return new Promise(function (rootResolve) {
        new Promise(function (resolve, reject) {
            var oCtx = {
                oConfig: {}
            };
            resolve(oCtx);
        }).then(function (oCtx) {
            return new Promise(function (resolve, reject) {
                // Do something
                resolve(oCtx);
            });
        }).then(function (oCtx) {
            return new Promise(function (resolve, reject) {
                // Do something
                resolve(oCtx);
            });
        }).then(function (oCtx) {
            return new Promise(function (resolve, reject) {
                // Do something
                rootResolve();
            });
        })
    });
}
